using System;
using System.Collections.Generic;
using System.Text;

namespace MonoCash.ObjectModel
{
    class AccountingCategory : ObjectModel
    {
        public static List<AccountingCategory> AccountingCategories
        {
            get
            {
                List<AccountingCategory> temp = new List<AccountingCategory>();
                AccountingCategory a = new AccountingCategory();
                foreach (ObjectModel o in a.Objects)
                {
                    temp.Add((AccountingCategory)o);
                }
                return temp;
            }
        }
        public AccountingCategory() : base() { }
        public AccountingCategory(object objectId) : base(objectId) { }

        private bool reverseSignForDisplay = false;
        public bool ReverseSignForDisplay
        {
            get { return reverseSignForDisplay; }
            set { reverseSignForDisplay = value; SyncToBackend(); }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set
            {
                name = value; SyncToBackend();
            }
        }

        private bool isBalanceSheetCategory = false;
        public bool IsBalanceSheetCategory
        {
            get { return isBalanceSheetCategory; }
            set { isBalanceSheetCategory = value; SyncToBackend(); }
        }
    }
}
